
genome_type=$1
cpu=$2
config_path=$3

source ${config_path}/config.sh

data_base_list=(jaspar cisbp)

for data_base in ${data_base_list[@]}
do
${Rscript_chromvar} ${scripts_dir}/run_chromvar.combine.R \
--peakfile ${output_dir}/combine/merged_output.bed \
--celltype_file ${config_path}/cluster_celltype.csv \
--input_dir ${input_dir} \
--data_base ${data_base} \
--genome_type ${genome_type} \
--cpu ${cpu} \
--out_path ${output_dir}/combine/${data_base} \
2> ${log_path}/combine.log
done
